package java3_7;

import java.util.Scanner;

/**
 * 5:定义一个double类型的数组，长度是8，求数组中所有数的积
 */
public class homework5 {
    public static void main(String[] args) {
        double ji = 1;
        Scanner scanner = new Scanner(System.in);
        double [] a = new double[8];
        for (int i = 0; i < a.length; i++) {
            a[i]=scanner.nextDouble();
            ji = ji*a[i];
        }
        System.out.println("数组中所有数的积为："+ji);
    }
}
